package com.example.hospital_208.dao;

import com.example.hospital_208.po.Doctor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DoctorDao {
    List<Doctor> findAllDoctors();
    Doctor findDoctorById(String doc_id);
    int insertDoctor(Doctor doctor);
    int updateDoctor(Doctor doctor);
    int deleteDoctorById(String doc_id);
    String findDocIdByUserName(String user_name);
    List<Doctor> findDoctorsBySubDepartment(Integer subDepartmentId);

    // 新增方法：获取医生及其科室信息
    List<Doctor> findDoctorsWithDepartmentInfo();
    Doctor findDoctorWithDepartmentInfoById(String doc_id);
}